package com.ddm.dto.webDTO;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class WebRegisterDTO {

    private String userName;


    private String password;

    private String photoUrl;


    @Email(message = "邮箱格式不正确")
    private String email;


    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phoneNum;

    @NotBlank(message = "验证码不能为空")
    private String verificationCode;

    private Integer verifyType; // 1:短信 2:邮箱
    private Integer usageType=1; // 1:注册 2:登录
    private String openId;

}
